<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/include/header.jsp"%>
<%@ include file="/WEB-INF/jsp/include/topbar.jsp" %>
	<div id="domains" class="m_content">
		<header><h1>请选择你关注的技术领域</h1></header>
		<section>
			<form name="initUser" id="initUser" method="post" action="/domain">
			<ul>
				<li>
                	<c:forEach var="domain" items="${AllDomains}" varStatus="status">
					<div>
                    <c:set var="checked" value=""/>
                    <c:set var="tmpValue">,${domain.value},</c:set>
                    <c:if test="${fn:contains(SelectedDomains,tmpValue)}">
                    	<c:set var="checked">checked</c:set>
                    </c:if>
                    <input type="checkbox" name="domains" id="${domain.value}" value="${domain.value}" ${checked}/>
                    <label for="${domain.value}">${domain.code}</label>
                    </div>
                    <c:if test="${(status.index+1)%5==0}"></li><li></c:if>
                    </c:forEach>
				</li>
			</ul>
			<input type="submit" name="submit" value="确定"/>
			</form>
		</section>
	</div>
<%@ include file="/WEB-INF/jsp/include/footer.jsp"%>